

#ifndef _SHELL_RESMATCHINGRESULT_MESSAGE_H_
#define _SHELL_RESMATCHINGRESULT_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include "VsInfoLog.h"
//#include <vector>
using namespace std;

class ResMatchingResultMessage : public Message
{
	public:
	ResMatchingResultMessage();
	~ResMatchingResultMessage();
	void reset();
	ResMatchingResultMessage* clone();
	static const int _ID;
	//战斗类型1。普通。2特殊。3强制
	int8 fightType;
	//是否成功。0失败。1成功
	int8 isSucceed;
	//结果类型1匹配战斗，2竞技战斗
	int8 type;
	//获得积分
	int8 nubmer;
	//获得名次
	int32 place;
	//所有对战信息日志
	vector<VsInfoLog*> vsInfoLog;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
